package com.wsx.first.c;

import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

/**
 * @author: wangshunxi
 * @date: 2022/5/10 16:22
 * @Description:
 */
public class Main0003 {
    public static void main(String[] args) {
        try (Scanner scanner = new Scanner(System.in)) {
            int i = scanner.nextInt();
            Set<Integer> data = new HashSet<>();
            for (int j = 0; j < i; j++) {
                data.add(scanner.nextInt());
            }
            data.stream().sorted().forEach(k -> {
                System.out.println(k);
            });
        }
    }

}
